package com.topisv.tms.repository.work.outScope;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.work.outScope.ScopeCustomerConfig;

/**
 * 超区件适用商户配置_DAO
 * @author gh
 *
 */
public abstract interface ScopeCustomerConfigDao extends PagingAndSortingRepository<ScopeCustomerConfig, Long>, JpaSpecificationExecutor<ScopeCustomerConfig>
{
	/**
	 * 删除超区件适用商户配置
	 * */
	@Modifying
	@Query("delete from ScopeCustomerConfig where outScopeId=?")
	void deleteByOutScopeId(Long outScopeId);
	/**
	 * 删除优势区适用商户配置
	 * */
	@Modifying
	@Query("delete from ScopeCustomerConfig where inScopeId=?")
	void deleteByInScopeId(Long inScopeId);
}